package com.mcarthur.countdown.client.drawable;

import com.googlecode.gwtgl.binding.WebGLRenderingContext;

public class Separator extends AbstractDrawable {
    public static Color COLOR = new Color(182.f/255.f, 180.f/255.f, 181.f/255.f);
	private static final int BALL_SEP = 38;
	private Ball[] balls;
	
	public Separator(float posX) {
		super(posX);
		
		// nice
		balls = new Ball[2];
		
		balls[0] = new Ball(posX, COLOR);
		//balls[0].setActive(true);
		balls[1] = new Ball(posX, COLOR);
		//balls[1].setActive(true);
	}

	@Override
	public void draw(WebGLRenderingContext gl) {
		balls[0].draw(gl);
		balls[1].draw(gl);
	}
	
	@Override
	public void setPosY(float posY) {
		super.setPosY(posY);
		balls[0].setPosY(posY + BALL_SEP);
		balls[1].setPosY(posY + (2 * BALL_SEP));
	}
}
